package com.gzhryc.net_marketing.cloud.business.event;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.gzhryc.common.event.IDelayEvent;
import com.gzhryc.net_marketing.cloud.business.services.models.PayGoodsOrderLogItem;

public class PayOrderLogEvent implements IDelayEvent {

    private static final long serialVersionUID = 1L;
    
	private String tradeNo;
    private Date createDate;
    private List<PayGoodsOrderLogItem> itemList;

    public PayOrderLogEvent() {
    }

    public PayOrderLogEvent(String tradeNo, Date createDate) {
        this.tradeNo = tradeNo;
        this.createDate = createDate;
        this.itemList = new ArrayList<PayGoodsOrderLogItem>();
    }

    public PayOrderLogEvent(String tradeNo, Date createDate, PayGoodsOrderLogItem item) {
        this.tradeNo = tradeNo;
        this.createDate = createDate;
        this.itemList = new ArrayList<PayGoodsOrderLogItem>();
        this.itemList.add(item);
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public List<PayGoodsOrderLogItem> getItemList() {
        return itemList;
    }

    public void setItemList(List<PayGoodsOrderLogItem> itemList) {
        this.itemList = itemList;
    }
}
